package com.pingan.haofang.searchcloud.api.query.parser.dbobject.sqlnode.function;

import com.pingan.haofang.searchcloud.api.query.parser.dbobject.FunctionConfig;
import com.pingan.haofang.searchcloud.api.query.parser.dbobject.OrderBySupport;

/**
 * 距离函数
 * 
 * @author LUYI374
 * @date 2017年7月11日
 * @since 1.0.0
 */
public class GeoDist extends Function implements OrderBySupport {

    private boolean asc;

    public GeoDist() {
        setName(FunctionConfig.GEO_DIST.name);
    }

    @Override
    public int getParamCount() {
        return 0;
    }

    @Override
    public boolean isAsc() {
        return asc;
    }

    @Override
    public void setAsc(boolean asc) {
        this.asc = asc;
    }

}
